package com.linyf.design.proxy.jdkDynamic;

/**
 * @Author: linyf
 * @Description: TODO
 * @DateTime: 2023/3/30 11:07
 **/
public class RealSubject implements Subject {

    private String name;

    private Subject proxy;

    public RealSubject(String name) {
        this.name = name;
    }

    @Override
    public String doSomething() {
        return this.name + ":doSomething";
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
